package com.example.myapplication;

import android.app.Application;

import com.hjq.toast.ToastUtils;


public class MyAPP extends Application {

    private static MyAPP myApplication;



    public static MyAPP getInstance() {
        return myApplication;
    }
    private static final String DATABASE_NAME = "greendao.db";
    @Override
    public void onCreate() {
        super.onCreate();
        /**
         * 引入bugly
         * bugly主动上报：
         * CrashReport.postCatchedException(thr);  // bugly会将这个throwable上报
         * */
        myApplication = this;
        ToastUtils.init(this);


    }



}
